package net.sansi.v3correctserver.service.v3serverapi;

import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Body;
import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Query;
import net.sansi.v3correctserver.dto.v3serverapi.V3ServerApiScreenDto;

/**
 * Created by Fang
 * create time : 2024/11/5
 * IDE : IntelliJ IDEA
 * <p>
 * v3-server 的 screen api接口
 */
@BaseRequest(
        baseURL = "#{correct.v3-server.host}",
        interceptor = V3ServerApiInterceptor.class
)
public interface V3ServerScreenApi {

    /**
     * 获取屏幕列表
     *
     * @param limit  限制
     * @param offset 偏移
     * @return 显示屏列表
     */
    @Get("/screens")
    V3ServerApiScreenDto.ScreensResp screens(@Query("limit") Integer limit, @Query("offset") Integer offset);

    @Get("/screens/{screenId}/allStatus")
    V3ServerApiScreenDto.AllStatusResp allStatus(@Body("screenId") String screenId);
}
